public class TestPalindrome {
    public static void main(String[] args) {
        System.out.println("racecar?       " + isPalindrome("racecar"));  // true
        System.out.println("hello?         " + isPalindrome("hello"));    // false
        System.out.println("RAdar?         " + isPalindrome("RAdar"));    // true
        System.out.println("aBCDefgFEdCbA? " + isPalindrome("aBCDefgFEdCbA"));  // true
        System.out.println("aBCDefgxEdCbA? " + isPalindrome("aBCDefgxEdCbA"));  // false
        System.out.println("a?             " + isPalindrome("a"));        // true
        System.out.println("Madam Adam?    " + isPalindrome("Madam Adam"));  // false
        System.out.println("?              " + isPalindrome(""));         // true
    }
    
    // your code goes here

}
